<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.ast.Node</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.ast.Node";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.ast.Node.html" class="symbol">dil.ast.Node</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> very high.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="Node" href="./htmlsrc/dil.ast.Node.html#L12" kind="class" beg="12" end="122">Node</a>; <span class="attrs">[<span class="stc">abstract</span>]</span> <a title="Permalink to this symbol" href="#Node" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L12">#</a></dt>
<dd class="ddef">
<div class="summary">The root class of all D syntax tree elements.</div>
<dl>
<dt class="decl">NodeCategory <a class="symbol _variable" name="Node.category" href="./htmlsrc/dil.ast.Node.html#L14" kind="variable" beg="14" end="14">category</a>; <a title="Permalink to this symbol" href="#Node.category" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L14">#</a></dt>
<dd class="ddef">
<div class="summary">The category of this node.</div></dd>
<dt class="decl">NodeKind <a class="symbol _variable" name="Node.kind" href="./htmlsrc/dil.ast.Node.html#L15" kind="variable" beg="15" end="15">kind</a>; <a title="Permalink to this symbol" href="#Node.kind" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L15">#</a></dt>
<dd class="ddef">
<div class="summary">The kind of this node.</div></dd>
<dt class="decl">Node[] <a class="symbol _variable" name="Node.children" href="./htmlsrc/dil.ast.Node.html#L16" kind="variable" beg="16" end="16">children</a>; <a title="Permalink to this symbol" href="#Node.children" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L16">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Token* <a class="symbol _variable" name="Node.begin" href="./htmlsrc/dil.ast.Node.html#L17" kind="variable" beg="17" end="17">begin</a>; <a title="Permalink to this symbol" href="#Node.begin" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L17">#</a></dt>
<dt class="decl">Token* <a class="symbol _variable" name="Node.end" href="./htmlsrc/dil.ast.Node.html#L17" kind="variable" beg="17" end="17">end</a>; <a title="Permalink to this symbol" href="#Node.end" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L17">#</a></dt>
<dd class="ddef">
<div class="summary">The begin and end tokens of this node.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="Node.this" href="./htmlsrc/dil.ast.Node.html#L20" kind="ctor" beg="20" end="24">this</a><span class="params">(NodeCategory <em>category</em>)</span>; <a title="Permalink to this symbol" href="#Node.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L20">#</a></dt>
<dd class="ddef">
<div class="summary">Constructs a node object.</div></dd>
<dt class="decl">void <a class="symbol _function" name="Node.setTokens" href="./htmlsrc/dil.ast.Node.html#L26" kind="function" beg="26" end="30">setTokens</a><span class="params">(Token* <em>begin</em>, Token* <em>end</em>)</span>; <a title="Permalink to this symbol" href="#Node.setTokens" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L26">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Class <a class="symbol _function" name="Node.setToks" href="./htmlsrc/dil.ast.Node.html#L32" kind="function" beg="32" end="36">setToks</a><span class="tparams">(Class)</span><span class="params">(Class <em>node</em>)</span>; <a title="Permalink to this symbol" href="#Node.setToks" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L32">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Node.addChild" href="./htmlsrc/dil.ast.Node.html#L38" kind="function" beg="38" end="42">addChild</a><span class="params">(Node <em>child</em>)</span>; <a title="Permalink to this symbol" href="#Node.addChild" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L38">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Node.addOptChild" href="./htmlsrc/dil.ast.Node.html#L44" kind="function" beg="44" end="47">addOptChild</a><span class="params">(Node <em>child</em>)</span>; <a title="Permalink to this symbol" href="#Node.addOptChild" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L44">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Node.addChildren" href="./htmlsrc/dil.ast.Node.html#L49" kind="function" beg="49" end="59">addChildren</a><span class="params">(Node[] <em>children</em>)</span>; <a title="Permalink to this symbol" href="#Node.addChildren" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L49">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Node.addOptChildren" href="./htmlsrc/dil.ast.Node.html#L61" kind="function" beg="61" end="64">addOptChildren</a><span class="params">(Node[] <em>children</em>)</span>; <a title="Permalink to this symbol" href="#Node.addOptChildren" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L61">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Class <a class="symbol _function" name="Node.Is" href="./htmlsrc/dil.ast.Node.html#L67" kind="function" beg="67" end="72">Is</a><span class="tparams">(Class)</span><span class="params">()</span>; <a title="Permalink to this symbol" href="#Node.Is" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L67">#</a></dt>
<dd class="ddef">
<div class="summary">Returns a reference to Class if this node can be cast to it.</div></dd>
<dt class="decl">Class <a class="symbol _function" name="Node.to" href="./htmlsrc/dil.ast.Node.html#L75" kind="function" beg="75" end="78">to</a><span class="tparams">(Class)</span><span class="params">()</span>; <a title="Permalink to this symbol" href="#Node.to" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L75">#</a></dt>
<dd class="ddef">
<div class="summary">Casts this node to Class.</div></dd>
<dt class="decl">Node <a class="symbol _function" name="Node.copy" href="./htmlsrc/dil.ast.Node.html#L81" kind="function" beg="81" end="81">copy</a><span class="params">()</span>; <span class="attrs">[<span class="stc">abstract</span>]</span> <a title="Permalink to this symbol" href="#Node.copy" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L81">#</a></dt>
<dd class="ddef">
<div class="summary">Returns a deep copy of this node.</div></dd>
<dt class="decl">Node <a class="symbol _function" name="Node.dup" href="./htmlsrc/dil.ast.Node.html#L84" kind="function" beg="84" end="92">dup</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.dup" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L84">#</a></dt>
<dd class="ddef">
<div class="summary">Returns a shallow copy of this object.</div></dd>
<dt class="decl">string <a class="symbol _variable" name="Node.set_kind" href="./htmlsrc/dil.ast.Node.html#L96" kind="variable" beg="96" end="96">set_kind</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#Node.set_kind" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L96">#</a></dt>
<dd class="ddef">
<div class="summary">This string is mixed into the constructor of a class that inherits
 from Node. It sets the member kind.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Node.isDeclaration" href="./htmlsrc/dil.ast.Node.html#L98" kind="function" beg="98" end="101">isDeclaration</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.isDeclaration" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L98">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">bool <a class="symbol _function" name="Node.isStatement" href="./htmlsrc/dil.ast.Node.html#L103" kind="function" beg="103" end="106">isStatement</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.isStatement" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L103">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">bool <a class="symbol _function" name="Node.isExpression" href="./htmlsrc/dil.ast.Node.html#L108" kind="function" beg="108" end="111">isExpression</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.isExpression" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L108">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">bool <a class="symbol _function" name="Node.isType" href="./htmlsrc/dil.ast.Node.html#L113" kind="function" beg="113" end="116">isType</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.isType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L113">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">bool <a class="symbol _function" name="Node.isParameter" href="./htmlsrc/dil.ast.Node.html#L118" kind="function" beg="118" end="121">isParameter</a><span class="params">()</span>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Node.isParameter" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.ast.Node.html#L118">#</a></dt>
<dd class="ddef"></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:55 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>